package model

import (
	"time"
)

// TotalInterface 统计数据
type TotalInterface struct {
	Total int
	Done  int
}

// TotalInterface2 统计数据
type TotalInterface2 struct {
	Total float64
	Done  float64
}

// ManageProject 项目管理模型
type ManageProject struct {
	UID     string
	Name    string
	Head    string
	Task    TotalInterface
	Demand  TotalInterface
	Defect  TotalInterface
	Overdue int
}

// ManageMember 成员工作管理模型
type ManageMember struct {
	UID      string
	Nickname string
	Task     TotalInterface
	Weight   TotalInterface2
	Demand   TotalInterface
	Defect   TotalInterface
	Overdue  int
	Check    TotalInterface
}

// ManageSummary 项目管理模型
type ManageSummary struct {
	UID        string
	Name       string
	Intro      string
	Status     uint
	Priority   uint
	Weight     float64
	ExecuteBy  string
	ProjectID  string
	Progress   int
	StartAt    *time.Time
	DeadlineAt *time.Time
	UpdatedAt  time.Time
	CreatedAt  time.Time
	CompleteAt *time.Time
}

// UserWithPerformance 成员绩效管理模型
type UserWithPerformance struct {
	UID             string
	Nickname        string
	OrganizationUID string
	Score           float64
}
